function checkPassword(){
    pass1 = document.getElementById("code").value;
    pass2 = document.getElementById("code1").value;
    if(pass1 == pass2){
 
        document.getElementById("errMsg1").style.display = "none";        
        document.getElementById("errMsg2").style.display = "none";
        return true;
    }else{
        document.getElementById("errMsg1").innerText = "两次密码不一致";
        document.getElementById("errMsg2").innerText = "两次密码不一致";
        document.getElementById("errMsg1").style.display = "block";        
        document.getElementById("errMsg2").style.display = "block";
        return false;
    }
}

